package factory